// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import 'lib-flexible'
import store from '@/store/index'

import '@/assets/style/fn.scss'

Vue.config.productionTip = false;

Vue.prototype.$axios = axios;

import myDialog from '__cp/myDialog'
Vue.component('my-dialog', myDialog)

import myLoading from '__cp/myLoading'
Vue.component('my-loading', myLoading)

// 获取设备宽高
store.dispatch('setDevice')

//store.dispatch('setUserInfo')

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
